
from django.urls import path, include
# 导入view
from studentweb import views
# 导入视图类
from rest_framework.routers import DefaultRouter

# 实例化一个路由对象
router = DefaultRouter()

# 为路由对象注册一个视图集合
router.register('students', views.StudentView, basename="students")

# 拼接urlpatterns
urlpatterns = [

] + router.urls
